<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>自动化脚本平台 - 个人中心</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background: #f0f2f5;
            color: #2d3436;
            line-height: 1.6;
        }

        .header {
            background: rgba(255, 255, 255, 0.98);
            padding: 1rem 2rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(10px);
        }

        .nav {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.6rem;
            font-weight: bold;
            color: #1a73e8;
            text-decoration: none;
            background: linear-gradient(45deg, #1a73e8, #4285f4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo img {
            width: 36px;
            height: 36px;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            align-items: center;
        }

        .nav-links a {
            color: #5f6368;
            text-decoration: none;
            font-weight: 500;
            font-size: 1rem;
            padding: 8px 16px;
            border-radius: 20px;
            transition: all 0.3s ease;
        }

        .nav-links a:hover {
            background: #f1f3f4;
            color: #1a73e8;
        }

        .main-container {
            max-width: 1200px;
            margin: 84px auto 0;
            padding: 2rem;
        }

        .account-section {
            background: #fff;
            border-radius: 12px;
            padding: 2rem;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            margin-bottom: 2rem;
        }

        .account-info {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            align-items: center;
        }

        .balance {
            font-size: 2.4rem;
            font-weight: bold;
            color: #1a73e8;
            background: linear-gradient(45deg, #1a73e8, #4285f4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .quota-status {
            padding: 0.5rem 1rem;
            background: #e8f0fe;
            color: #1a73e8;
            border-radius: 20px;
            font-weight: 500;
            display: inline-block;
        }

        .recharge-btn {
            padding: 0.8rem 2rem;
            background: #1a73e8;
            color: white;
            border: none;
            border-radius: 20px;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            text-align: center;
        }

        .recharge-btn:hover {
            background: #1557b0;
            transform: translateY(-2px);
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background: #fff;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            transition: transform 0.3s ease;
        }

        .stat-card:hover {
            transform: translateY(-5px);
        }

        .stat-card h3 {
            color: #5f6368;
            font-size: 1rem;
            margin-bottom: 1rem;
            font-weight: 500;
        }

        .stat-card .number {
            font-size: 2.4rem;
            font-weight: bold;
            color: #1a73e8;
            background: linear-gradient(45deg, #1a73e8, #4285f4);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .activity-section {
            background: #fff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            overflow: hidden;
        }

        .activity-section h2 {
            padding: 1.5rem 2rem;
            color: #1a73e8;
            font-size: 1.4rem;
            border-bottom: 1px solid #e8eaed;
        }

        .activity-list {
            list-style: none;
        }

        .activity-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.2rem 2rem;
            border-bottom: 1px solid #e8eaed;
            transition: background 0.3s ease;
        }

        .activity-item:hover {
            background: #f8f9fc;
        }

        .activity-info {
            color: #3c4043;
            font-size: 1rem;
        }

        .activity-time {
            color: #80868b;
            font-size: 0.9rem;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 1.2rem;
        }

        .user-info span {
            font-weight: 500;
            color: #3c4043;
        }

        .user-info a {
            padding: 0.5rem 1rem;
            background: #f1f3f4;
            color: #5f6368;
            text-decoration: none;
            border-radius: 20px;
            transition: all 0.3s ease;
        }

        .user-info a:hover {
            background: #e8eaed;
            color: #1a73e8;
        }
    </style>
</head>
<body>
    <header class="header">
        <nav class="nav">
            <a href="/" class="logo">
                <img src="/static/logo.png" alt="Logo">
                自动化脚本平台
            </a>
            <div class="nav-links">
                <a href="/scripts">我的脚本</a>
                <a href="/devices">设备管理</a>
                <a href="/settings">账户设置</a>
                <div class="user-info">
                    <span>张三</span>
                    <a href="/logout">退出</a>
                </div>
            </div>
        </nav>
    </header>

    <div class="main-container">
        <div class="account-section">
            <h2>账户信息</h2>
            <div class="account-info">
                <div>
                    <h3>账户余额</h3>
                    <div class="balance">￥0.00</div>
                </div>
                <div>
                    <h3>可用额度</h3>
                    <span class="quota-status">实名认证后开通</span>
                </div>
                <button class="recharge-btn">立即充值</button>
            </div>
        </div>

        <div class="dashboard-grid">
            <div class="stat-card">
                <h3>脚本数量</h3>
                <div class="number">0</div>
            </div>
            <div class="stat-card">
                <h3>设备数量</h3>
                <div class="number">0</div>
            </div>
            <div class="stat-card">
                <h3>本月运行次数</h3>
                <div class="number">0</div>
            </div>
        </div>

        <div class="activity-section">
            <h2>最近活动</h2>
            <ul class="activity-list">
                <li class="activity-item">
                    <div class="activity-info">欢迎使用自动化脚本平台</div>
                    <div class="activity-time">刚刚</div>
                </li>
            </ul>
        </div>
    </div>
</body>
</html>
